package com.caocaog.market.toccpt.mapper;
import com.caocaog.market.toccpt.marketmodel.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

/**
 * @author liguang
 * @version 1.0.0
 * @Project jeecg-boot
 * @Package com.caocaog.market.toccpt.mapper
 * @ClassName MarketOrderMapper.java
 * @createTime 2021年12月25日 09:47:00
 * @Description TODO
 */
@Mapper
public interface MarketOrderMapper {
    OrderBaseInfo findOrderBaseBypayNo(@Param("payNo")String payNo);

    OrderDeliveryInfo findOrderDeliveryByOrderId(@Param("orderId")String orderId);

    OrderGoodsHisInfo findOrderGoodsHisById(@Param("goodsHisId")String goodsHisId);

    List<OrderLineInfo> findOrderLineByOrderId(@Param("orderId")String orderId);

    ShopDeliveryInfo findShopDeliveryByShopId(@Param("shopId")String shopId);

    List<ShopDeliveryInfo> findPriveByDeliveryId(@Param("deliveryIds") String[] deliveryIds);

    ShopInfo findShopByShopId(@Param("shopId") String shopId);

    Map<String,String> findMemberBindByShopId(@Param("shopId") String shopId);

    /**
     * 根据分站id查询该分站对应的曹操跑腿系统中的代理商id
     */
    String findSitecOrrespondingAgentId(@Param("siteId") String siteId);
}
